﻿@model TagsViewModel

@foreach (TagViewModel tagModel in this.Model.Tags)
{
	string url = string.Empty;
	string cssClass = string.Empty;
	if (tagModel.Code == this.Model.FilterConfig.Tag)
	{
		url = this.Url.Action("List", "Entries" , new { viewType = this.Model.ViewType, pageNumber = 1 });
        cssClass = "currentTag";
	}
	else
	{
		url = this.Url.Action("List", "Entries", new { viewType = this.Model.ViewType, pageNumber = 1, tag = tagModel.Code });
	}
	<a href="@url" class="@cssClass">@tagModel.Name</a>
}